Skip to content

Instantly share code, notes, and snippets.

@dedanirungu
dedanirungu / how-to-install-freeradius-ubuntu-22.md
Last active May 10, 2024 11:40
Freeradius Installation with Virtual Servers and Multiple Databases per Customer
@kennypete
kennypete / navigating_the_modes_of_Vim.md
Created April 18, 2024 20:46
Navigating the modes of Vim

Navigating the modes of Vim

This diagram illustrates navigating through Vim’s modes. It was built factoring Vim 9 (i.e., all its modes, including up to two new modes, cr and cvr, in November 2023). Information about the state() and 'showmode' is provided too.

SVG version

Some features are only available in the SVG version. It is not provided directly from within this gist’s files because SVGs do not always play nicely in GitHub (particularly, refusing to display embedded fonts).

The SVG version includes hover text help, which shows pertinent information about the underlying key, command, mode, etc.

@sloanlance
sloanlance / clone-private-github-repo-in-google-colab.ipynb
Last active May 10, 2024 11:38
clone-private-github-repo-in-google-colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@jesussuarz
jesussuarz / install-lsi-megacli-and-create-raid5-for-ovh-servers.md
Last active May 10, 2024 11:32
Install LSI MegaCli package on Debian/Ubuntu/RedHat and Create 2 groups RAID5 for OVH Servers to use maximum disk space

Send your server to rescue mode, If you use rescue custom mode then you probably need to install megacli

Then you can, When your server reboots, log in to it via SSH using the rescue mode credentials that were emailed to you.

Install LSI MegaCli package on Linux - All distributions based on RedHat/Debian:

Ubuntu/Debian

Install necessary tools

apt-get install unzip
@jonlabelle
jonlabelle / docker_compose_cheatsheet.md
Last active May 10, 2024 11:29
Docker Compose Cheatsheet
@fxkraus
fxkraus / debian-install-megacli.md
Last active May 10, 2024 11:27
Install LSI MegaCli .deb package on Debian/Ubuntu

download

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip

unzip

unzip 8-07-14_MegaCLI.zip
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 10, 2024 11:26
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@olls
olls / notepad.html
Last active May 10, 2024 11:24
A JavaScript notepad with open, save, local storage and markdown preview.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>NotePad!</title>
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining